<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_featured_products.php 2935 2006-02-01 11:12:40Z birdbrain $
 */
  $zc_show_featured = false;
  include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE));
?>

<!-- bof: featured products  -->
<?php if ($zc_show_featured == true) { ?>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td><?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'comm_fi_header.gif'); ?></td>
    </tr>
    <tr>
      <td height="230" class="l-border">
        <table cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>

<?php
if (is_array($list_box_contents) > 0 ) {
 for($row=0;$row<sizeof($list_box_contents);$row++) {
    $params = "";
    //if (isset($list_box_contents[$row]['params'])) $params .= ' ' . $list_box_contents[$row]['params'];
?>

<?php
    for($col=0;$col<sizeof($list_box_contents[$row]);$col++) {
      $r_params = "";
      if (isset($list_box_contents[$row][$col]['params'])) $r_params .= ' ' . (string)$list_box_contents[$row][$col]['params'];
     if (isset($list_box_contents[$row][$col]['text'])) {
?>
    <?php echo  $list_box_contents[$row][$col]['text'] ; ?>
<?php
      }
    }
?>
<?php
  }
}
?> 
   </tr>
          </tbody>
        </table>
      </td>
    </tr>
    <tr>
      <td><?php  echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'comm_fifm_bottom.gif'); ?></td>
    </tr>
  </tbody>
</table>
<?php } ?>
<!-- eof: featured products  -->
